<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\View;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        //后台html title标签名
        View::share('backendTitle', 'LightShop后台管理');
        //静态文件路径
        View::share('backendCssPath', config('app.css_backend_path'));
        View::share('backendJsPath', config('app.js_backend_path'));
        View::share('frontendCssPath', config('app.css_frontend_path'));
        View::share('frontendJsPath', config('app.js_frontend_path'));
        View::share('jsPath', config('app.js_path'));
        View::share('imagesPath', config('app.images_path'));
        View::share('fontsPath', config('app.fonts_path'));
        //后台侧边栏
        View::share('backendSideNav', config('sideNav.side_nav'));
    }

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}
